import 'package:distribution_mall_flutter/constant/cf_constant.dart';
import 'package:distribution_mall_flutter/constant/image_constant.dart';
import 'package:distribution_mall_flutter/generated/l10n.dart';
import 'package:distribution_mall_flutter/pages/goods/product_details/widgets/modal_services.dart';
import 'package:distribution_mall_flutter/widgets/card.dart';
import 'package:distribution_mall_flutter/widgets/navigation_item.dart';
import 'package:flutter/material.dart';
import 'package:modal_bottom_sheet/modal_bottom_sheet.dart';

class ContentHtml extends StatelessWidget {
  const ContentHtml({super.key});

  Widget rowRender({required List<Widget> children, double top = 18}) {
    return Padding(
      padding: EdgeInsets.only(top: top),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: children,
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return EPCard(
        child: AnimatedContainer(
      duration: const Duration(milliseconds: 500),
      child: Column(
        children: [
          SizedBox(
            height: 54,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                const Divider(),
                Padding(
                  padding: const EdgeInsets.symmetric(
                      horizontal: EdgeConstant.edge15),
                  child: Text(
                    S.of(context).productDetail,
                    style: const TextStyle(
                        color: ColorConstant.grey153,
                        fontSize: FontConstant.f11),
                  ),
                )
              ],
            ),
          ),
          Visibility(
            visible: true,
            child: SizedBox(
              height: 30,
              child: Center(
                child: Text(
                  S.of(context).viewAll,
                  style: const TextStyle(
                      color: ColorConstant.grey153, fontSize: FontConstant.f11),
                ),
              ),
            ),
          )
        ],
      ),
    ));
  }
}
